package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.educational.entity.OnlineTest;
import com.yuyou.fn.educational.entity.OnlineTestResult;

import java.util.List;

/**
 *
 * OnlineTest 表数据服务层接口
 *
 */
public interface IOnlineTestService extends ISuperService<OnlineTest,Long> {


    OnlineTest generateOnlineTestForStudent(Long campusId, Long studentId, Long measurementId, int asFlag);

    List<OnlineTestResult> findOnlineTestResults(Long onlineTestId);

    List<OnlineTestResult> findOnlineTestResults(List<Long> onlineTestIds);

    OnlineTestResult beginTesting(Long onlineTestId);

    void saveTestResult(Long onlineTestResultId, Integer testDuration, String answerDetail, Boolean isComplete);

    List<OnlineTest> findOnlineTestForTests(Long studentId);

    void saveExternalScore(Long onlineTestId, Double score);

    void mergeOnlineTest(long originStudentId,long targetStudentId);
}